/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package shared;

import java.io.BufferedWriter;
import java.io.FileWriter;

/**
 *
 * @author konp
 */
public class RMILogger
{

    public static void add(String text)
    {
        try
        {
            BufferedWriter out = new BufferedWriter(new FileWriter("log.txt", true));
            out.write(text + "\n");
            out.close();
        } catch (Exception e)
        {
            System.err.println("Error: " + e.getMessage());
        }

    }
}
